# -*- coding: utf-8 -*-
from django.db import models

# Create your models here.
__author__ = 'Lemon Cheng'

class Person(models.Model):
    name = models.CharField(max_length=30)
    age = models.IntegerField()


    def __unicode__(self):
        return self.name

class Article(models.Model):
    title = models.CharField(u'标题',max_length=256)
    content = models.TextField(u'内容')
    pub_date = models.DateTimeField(u'',auto_now_add=True,editable=True)
    update_time = models.DateTimeField(u'',auto_now=True,null=True)